package 线程.day3.demo7;

import java.util.concurrent.atomic.AtomicInteger;

public class Count {
    //Integer i=0;
    AtomicInteger i=new AtomicInteger();
    void add(){
        //i++;
        i.addAndGet(1);
    }

     void dec(){
        //i--;
         i.decrementAndGet();
    }

}
